using System;
using System.Collections;
using System.Collections.Generic;

namespace BotonJXC.Entity 
{
	/// <summary>
	/// Allocates
	/// </summary>
	public class Allocates : BaseEntity
	{
		public Allocates()
		{
			
		}
		
		public virtual int AllocateId{ get; set; }
		/// <summary>
		/// 1: 分店店内调拨
        ///2: 分店同城调拨
        ///3: 配送店内调拨
        ///4: 加工间店内调拨
        ///5: 配送行政领用
		/// </summary>
        public virtual int AllocateType { get; set; }
        public virtual string AllocateSn { get; set; }
        public virtual string Salesman { get; set; }
        public virtual string GenPicking { get; set; }
        public virtual int PrintTime { get; set; }
        public virtual string OwnUse { get; set; }
     
        /// <summary>
        /// 调入门店
        ///    public virtual Int32? InStoreId { get; set; }
        /// </summary>
        public virtual Store InStore { get; set; }
        
        /// <summary>
        /// 调入部门
        /// public virtual Int32? InDepId { get; set; }
        /// </summary>        
        public virtual Department InDepartment { get; set; }

       
       /// <summary>
       /// 调出门店
        ///  public virtual Int32? OutStoreId { get; set; }
       /// </summary>
        public virtual Store OutStore { get; set; }


        /// <summary>
        /// 调出部门
        ///         public virtual Int32? OutDepId { get; set; }
        /// </summary>
        public virtual Department OutDepartment { get; set; }

        /// <summary>
        /// 入库地
        ///         public virtual Int32? InWarehouseId { get; set; }
        /// </summary>
        public virtual Warehouse InWarehouse { get; set; }
        /// <summary>
        /// 出库地         public virtual Int32? OutWarehouseId { get; set; }
        /// </summary>     
        public virtual Warehouse OutWarehouse { get; set; }
        /// <summary>
        /// 创建人        public virtual Int32? CreaterId { get; set; }
        /// </summary>
        public virtual Account Account { get; set; }
        public virtual DateTime? CreateTime { get; set; }
        public virtual short AuditStatus { get; set; }
        /// <summary>
        /// 审核人
        ///         public virtual Int32? AuditUser { get; set; }
        /// </summary>
        public virtual Account AuditAccount { get; set; }
        public virtual DateTime? AuditTime { get; set; }
        public virtual string AuditRemark { get; set; }
        public virtual string Remark { get; set; }
		/// <summary>
		/// 1: 分店管理
        ///2: 配送中心
        ///4: 加工间
		/// </summary>
		public virtual short CreatePlace{ get; set; }
		/// <summary>
		/// 用于数据权限控制
		/// </summary>
		public virtual Int32? OrgId{ get; set; }
        public virtual Int32? OrgDepId { get; set; }
        public virtual IList<AllocatesProducts> Products { get; set; }

        public virtual DateTime? EndCreateTime { get; set; }
	}
}

